package com.example.springbootfoodsafety.serviceimpl;


import com.example.springbootfoodsafety.dao.TestDao;
import com.example.springbootfoodsafety.entity.User;
import com.example.springbootfoodsafety.service.TestServiec;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestServiceImpl implements TestServiec {

    @Autowired(required=true)
    private TestDao dao;

    @Override
    public User getUser() {
        return dao.getUser();
    }
}
